-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[SharedUX][A11y] Fix tag selector missing error text #241443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SharedUX][A11y] Fix tag selector missing error text #241443
Conversation
|
@elasticmachine run docs-build-pr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! code review and tested roles with and without tag create capability.
|
/ci |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Tested on cloud and with voiceover. So happy to see a11y fixes.
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
History
cc @angeles-mb |
|
Starting backport for target branches: 9.2 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
Closes elastic#237856 ## Summary - Added differentiated error messages for the `TagSelector` for the following use cases: - Tag doesn't exist: - If user has permissions, prompt to create it - If they don't, prompt to select one from the list - Tag exists, prompt to select it - Tag exists and it is already selected - This change should fix all occurrences of the missing error message for the `TagSelector`. - For the Settings flyout, instead of directly using the `TagSelector` we are now using the wrapper containing this validation logic, there should be no other changes. ### Testing Flyout Settings: https://github.com/user-attachments/assets/461772cc-40d5-43c2-8c7d-e0571d9f93f8 Dashboard Details: https://github.com/user-attachments/assets/3005cd63-9775-484a-804f-de9bcb2c381f Error announcement on VO: <img width="642" height="673" alt="Screenshot 2025-10-31 at 12 04 46" src="https://github.com/user-attachments/assets/7e387d5e-2df2-4968-8fd1-10daf03db6fd" /> Co-authored-by: Elastic Machine <[email protected]> (cherry picked from commit 9eb3ad3) # Conflicts: # src/platform/plugins/shared/dashboard/public/dashboard_renderer/settings/settings_flyout.tsx
Closes #237856 ## Summary - Added differentiated error messages for the `TagSelector` for the following use cases: - Tag doesn't exist: - If user has permissions, prompt to create it - If they don't, prompt to select one from the list - Tag exists, prompt to select it - Tag exists and it is already selected - This change should fix all occurrences of the missing error message for the `TagSelector`. - For the Settings flyout, instead of directly using the `TagSelector` we are now using the wrapper containing this validation logic, there should be no other changes. ### Testing Flyout Settings: https://github.com/user-attachments/assets/461772cc-40d5-43c2-8c7d-e0571d9f93f8 Dashboard Details: https://github.com/user-attachments/assets/3005cd63-9775-484a-804f-de9bcb2c381f Error announcement on VO: <img width="642" height="673" alt="Screenshot 2025-10-31 at 12 04 46" src="https://github.com/user-attachments/assets/7e387d5e-2df2-4968-8fd1-10daf03db6fd" /> Co-authored-by: Elastic Machine <[email protected]> (cherry picked from commit 9eb3ad3) # Conflicts: # src/platform/plugins/shared/dashboard/public/dashboard_renderer/settings/settings_flyout.tsx
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
…241654) # Backport This will backport the following commits from `main` to `9.2`: - [[SharedUX][A11y] Fix tag selector missing error text (#241443)](#241443) <!--- Backport version: 10.1.0 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Ángeles Martínez Barrio","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-11-03T15:17:06Z","message":"[SharedUX][A11y] Fix tag selector missing error text (#241443)\n\nCloses https://github.com/elastic/kibana/issues/237856\n\n## Summary\n\n- Added differentiated error messages for the `TagSelector` for the\nfollowing use cases:\n - Tag doesn't exist:\n - If user has permissions, prompt to create it\n - If they don't, prompt to select one from the list\n - Tag exists, prompt to select it\n - Tag exists and it is already selected\n- This change should fix all occurrences of the missing error message\nfor the `TagSelector`.\n- For the Settings flyout, instead of directly using the `TagSelector`\nwe are now using the wrapper containing this validation logic, there\nshould be no other changes.\n\n### Testing\n\nFlyout Settings:\n\n\nhttps://github.com/user-attachments/assets/461772cc-40d5-43c2-8c7d-e0571d9f93f8\n\nDashboard Details:\n\n\nhttps://github.com/user-attachments/assets/3005cd63-9775-484a-804f-de9bcb2c381f\n\nError announcement on VO:\n\n<img width=\"642\" height=\"673\" alt=\"Screenshot 2025-10-31 at 12 04 46\"\nsrc=\"https://github.com/user-attachments/assets/7e387d5e-2df2-4968-8fd1-10daf03db6fd\"\n/>\n\nCo-authored-by: Elastic Machine <[email protected]>","sha":"9eb3ad35ea648576365ebac5539bfadfff66c6e7","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","ci:cloud-deploy","backport:version","v9.3.0","v9.2.1"],"title":"[SharedUX][A11y] Fix tag selector missing error text","number":241443,"url":"https://github.com/elastic/kibana/pull/241443","mergeCommit":{"message":"[SharedUX][A11y] Fix tag selector missing error text (#241443)\n\nCloses https://github.com/elastic/kibana/issues/237856\n\n## Summary\n\n- Added differentiated error messages for the `TagSelector` for the\nfollowing use cases:\n - Tag doesn't exist:\n - If user has permissions, prompt to create it\n - If they don't, prompt to select one from the list\n - Tag exists, prompt to select it\n - Tag exists and it is already selected\n- This change should fix all occurrences of the missing error message\nfor the `TagSelector`.\n- For the Settings flyout, instead of directly using the `TagSelector`\nwe are now using the wrapper containing this validation logic, there\nshould be no other changes.\n\n### Testing\n\nFlyout Settings:\n\n\nhttps://github.com/user-attachments/assets/461772cc-40d5-43c2-8c7d-e0571d9f93f8\n\nDashboard Details:\n\n\nhttps://github.com/user-attachments/assets/3005cd63-9775-484a-804f-de9bcb2c381f\n\nError announcement on VO:\n\n<img width=\"642\" height=\"673\" alt=\"Screenshot 2025-10-31 at 12 04 46\"\nsrc=\"https://github.com/user-attachments/assets/7e387d5e-2df2-4968-8fd1-10daf03db6fd\"\n/>\n\nCo-authored-by: Elastic Machine <[email protected]>","sha":"9eb3ad35ea648576365ebac5539bfadfff66c6e7"}},"sourceBranch":"main","suggestedTargetBranches":["9.2"],"targetPullRequestStates":[{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/241443","number":241443,"mergeCommit":{"message":"[SharedUX][A11y] Fix tag selector missing error text (#241443)\n\nCloses https://github.com/elastic/kibana/issues/237856\n\n## Summary\n\n- Added differentiated error messages for the `TagSelector` for the\nfollowing use cases:\n - Tag doesn't exist:\n - If user has permissions, prompt to create it\n - If they don't, prompt to select one from the list\n - Tag exists, prompt to select it\n - Tag exists and it is already selected\n- This change should fix all occurrences of the missing error message\nfor the `TagSelector`.\n- For the Settings flyout, instead of directly using the `TagSelector`\nwe are now using the wrapper containing this validation logic, there\nshould be no other changes.\n\n### Testing\n\nFlyout Settings:\n\n\nhttps://github.com/user-attachments/assets/461772cc-40d5-43c2-8c7d-e0571d9f93f8\n\nDashboard Details:\n\n\nhttps://github.com/user-attachments/assets/3005cd63-9775-484a-804f-de9bcb2c381f\n\nError announcement on VO:\n\n<img width=\"642\" height=\"673\" alt=\"Screenshot 2025-10-31 at 12 04 46\"\nsrc=\"https://github.com/user-attachments/assets/7e387d5e-2df2-4968-8fd1-10daf03db6fd\"\n/>\n\nCo-authored-by: Elastic Machine <[email protected]>","sha":"9eb3ad35ea648576365ebac5539bfadfff66c6e7"}},{"branch":"9.2","label":"v9.2.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
Closes #237856
Summary
TagSelectorfor the following use cases:TagSelector.TagSelectorwe are now using the wrapper containing this validation logic, there should be no other changes.Testing
Flyout Settings:
Screen.Recording.2025-10-31.at.12.03.03.mov
Dashboard Details:
Screen.Recording.2025-10-31.at.12.03.52.mov
Error announcement on VO: